# Title     : TODO
# Objective : TODO
# Created by: masaikk
# Created on: 2020/12/12


f= function (x){
  if(x<1){
    tanh(x)
  }else{
    if(x<0){
      x
    }else{
      exp(x)
    }
  }
}

x=seq(-2,2,length=100)

y=rep(0,length(x))
j=1
for(i in x){
  y[j]=f(i)
  j=j+1
}

plot(x,y,type='l')



